﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace BackgroundTest.DialogBox
{
    class DialogConstant
    {
        // The number of font of SongTi.
        private static int printFontNumber;
        public static int PrintFontNumber
        {
            get { return printFontNumber; }
        }

        static DialogConstant()
        {
            printFontNumber = 16;
        }
    }

    class DialogMessage
    {

    }

    class DialogBox : DrawableGameComponent
    {
        Texture2D dialogTextureUp;

        Texture2D dialogTextureDown;

        SpriteFont[] printFont;

        Queue<DialogMessage> dialogMessageQueue;

        public DialogBox(BackgroundTest.BackGroundTest game):base(game)
        {
            printFont = new SpriteFont[DialogConstant.PrintFontNumber];
            dialogMessageQueue = new Queue<DialogMessage>();
        }

        public override void Initialize()
        {
            dialogTextureUp = Game.Content.Load<Texture2D>(@"UserInterface\tdialogup");
            dialogTextureDown = Game.Content.Load<Texture2D>(@"UserInterface\tdialogdown");
            for (int i = 0; i < DialogConstant.PrintFontNumber; i++ )
            {
                printFont[i] = Game.Content.Load<SpriteFont>(@"Fonts\SongTi\Song" + i.ToString());
            }
            base.Initialize();
        }

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);
        }

        public void AssignDialogMessage(string _str)
        {

        }
    }
}
